package com.atguigu.day12.test08;

public class Test08 {
    public static void main(String[] args) {
        MyArrayList list = new MyArrayList();
        list.add("你");

        System.out.println(list.getAll().length);
        System.out.println(list.getTotal());
        list.add("我");
        System.out.println(list.getAll().length);
        System.out.println(list.getTotal());
        list.add("他");
        System.out.println(list.getAll().length);
        System.out.println(list.getTotal());
        list.remove(1);
        list.set(1,"更好的我");
        list.remove(2);
        System.out.println(list.get(1).toString());
        Selector selector = list.select();
//        System.out.println(list.select().nasNext());
////        System.out.println(list.select1());
//        System.out.println(list.select().next());
        while (selector.nasNext()!=false)
            System.out.println(selector.next());
//
//        System.out.println(selector.next());
    }
}
